﻿<controls:ChildWindow xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  xmlns:my1="clr-namespace:SLControls.Controls;assembly=SLControls"  x:Class="VAdvantage.Framework.Info"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      xmlns:mc1="clr-namespace:System.Windows;assembly=System.Windows"
                      xmlns:sl="clr-namespace:SLControls.Controls;assembly=SLControls" 
           Width="805" Height="495" 
           Title="Info" xmlns:my="clr-namespace:VAdvantage.Controls" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" BorderBrush="{x:Null}">
    <controls:ChildWindow.Resources>
        <Style TargetType="sdk:DataGridCell" x:Key="DataGridCellStyle">
            <Setter Property="Background" Value="White" />
            <!--<Setter Property="Foreground" Value="#FF0059C0"/>-->
            <Setter Property="FontStyle" Value="Normal"/>
            <Setter Property="FontFamily" Value="Arial"/>
            <Setter Property="FontWeight" Value="SemiBold"/>
        </Style>
    </controls:ChildWindow.Resources>
    <Grid>
        <Grid x:Name="outerPanel1" Margin="2" Height="450">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="240*" />
                <RowDefinition Height="40" />
                <RowDefinition Height="29" />
            </Grid.RowDefinitions>

            <Button x:Name="bClose"  Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,120,0" Grid.Row="2">
                <Image  Source="/VAdvantage;component/Images/create_order.png" Stretch="Fill" />
            </Button>

            <Button x:Name="bShowSaved"  Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,80,0" Grid.Row="2" Visibility="Collapsed">
                <Image Source="/VAdvantage;component/Images/list_view.png" Stretch="Fill" Margin="5" />
            </Button>

            <!--<Button Height="35" HorizontalAlignment="Right" Margin="0,5,80,0" Name="bShowSaved" Visibility="Visible" IsEnabled="False" Width="35">
                <Image  Source="/VAdvantage;component/Images/create_order.png" Stretch="Fill"  />
            </Button>-->

            <Button x:Name="CancelButton"  Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,40,0" Grid.Row="2">
                <Image  Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"  />
            </Button>
            <Button x:Name="bOK"  Width="35" Height="35" HorizontalAlignment="Right" Margin="0,5,0,0" Grid.Row="2">
                <Image  Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill" />
            </Button>


                
            <my1:VDataGrid AutoGenerateColumns="True" Grid.Row="1" x:Name="vdgvRecords1" Margin="0,12,0,0" />
            <my1:VDataGrid AutoGenerateColumns="True" Visibility="Collapsed" Grid.Row="1" x:Name="vdgvRecords2" Margin="0,12,0,0" >
                <sdk:DataGrid.Columns>
                    <sdk:DataGridTemplateColumn  Header="Delete">
                        <sdk:DataGridTemplateColumn.CellTemplate>
                            <mc1:DataTemplate>
                                <Image Height="16" Width="16" Source="/VAdvantage;component/Images/delete.png" />
                                
                                <!--<my1:VImage Height="16" Width="16" Icon="/VAdvantage;component/Images/delete.png"  />-->
                            </mc1:DataTemplate>
                        </sdk:DataGridTemplateColumn.CellTemplate>
                    </sdk:DataGridTemplateColumn>
                </sdk:DataGrid.Columns>
            </my1:VDataGrid>
            
            <Grid Name="tablePanel1" Background="Transparent"  />
            <toolkit:BusyIndicator BusyContent="Please Wait..." Canvas.ZIndex="1" Height="61" HorizontalAlignment="Center" IsBusy="False" IsEnabled="True" Margin="295,53,324,126" Name="BusyWindow" VerticalAlignment="Center" Width="153" Grid.Row="1" />
            <Button  Grid.Row="2" Height="35" HorizontalAlignment="Left" Margin="40,5,0,0" Name="bPrint" VerticalAlignment="Top" Width="35">
                <Image  Source="/VAdvantage;component/Images/Print32.png" Stretch="Fill"  />
            </Button>
            <Button  Grid.Row="2" Height="35" HorizontalAlignment="Left" Margin="0,5,0,0" Name="bRefresh" VerticalAlignment="Top" Width="35">
                <Image  Source="/VAdvantage;component/Images/Refresh32.png" Stretch="Fill"  />
            </Button>
            

            <TextBlock Grid.Row="3" HorizontalAlignment="Left" Margin="4,1,0,2" Name="statusBar" Text="" Width="764" />
        </Grid>

        <Grid x:Name="busyWindow"   Visibility="Collapsed" Background="LightGray" Opacity=".4">
            <TextBlock x:Name="txtBusy" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16" Visibility="Collapsed" FontStyle="Italic" Text="Processing Please Wait ..."></TextBlock>
        </Grid>
    </Grid>
</controls:ChildWindow>